package net.apexes.demo.codegen.ormlite.annotation.entity;

import com.j256.ormlite.field.*;
import com.j256.ormlite.table.*;
import net.apexes.demo.codegen.entity.base.OrmliteEntityBase;

/**
 * Shop. Corresponds to the database table "SHOP"
 */
@DatabaseTable(tableName = "SHOP")
public class Shop extends OrmliteEntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * The columns of table "SHOP"
     */
    public interface $ extends OrmliteEntityBase.$ {

        /**
         * ADDRESS
         */
        public static final String address = "ADDRESS";

        /**
         * BRAND_ID
         */
        public static final String brandId = "BRAND_ID";

        /**
         * NAME
         */
        public static final String name = "NAME";

        /**
         * SN
         */
        public static final String sn = "SN";

        /**
         * TEL
         */
        public static final String tel = "TEL";

    }

    @DatabaseField(columnName = $.address)
    private String address;

    @DatabaseField(columnName = $.brandId)
    private String brandId;

    @DatabaseField(columnName = $.name, canBeNull = false)
    private String name;

    @DatabaseField(columnName = $.sn, canBeNull = false)
    private String sn;

    @DatabaseField(columnName = $.tel)
    private String tel;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",address=").append(address);
        sb.append(",brandId=").append(brandId);
        sb.append(",name=").append(name);
        sb.append(",sn=").append(sn);
        sb.append(",tel=").append(tel);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

